module(..., package.seeall)

NODE = {
	_pto='@ws/@luacfg'
}

NODE.content=[==[
	SITE_TITLE     = "ZDCWS"        -- change the title of the site
	SITE_SUBTITLE  = "Don't panic!"       -- change the subtitle of the site
	POWEREDBY="Powered by ZDC 0.5 Copyright (C) 2004-2011 pulleyzzz."
	DOMAIN         = "localhost:8080"     -- set for RSS feeds to work properly
	NICE_URL       = BASE_URL      -- set if you want "nicer" URLs
	MAIN_COLOR     = 200                  -- pick a number from 0 to 360
	
	HOME_PAGE      = "@ws/index"
	HOME_PAGE_URL  = NICE_URL             -- or NICE_URL.."?p="..HOME_PAGE
	
	COOKIE_NAME='ZDCWS'
	SEARCH_PAGE= "@ws/search"             -- comment out remove the search box
	
	ADMIN_NODE_PREFIX = "@ws/"
	DEFAULT_NAVIGATION_BAR    = ADMIN_NODE_PREFIX.."navigation"
	LOGIN_NODE                = ADMIN_NODE_PREFIX.."login"
	LOGOUT_NODE               = ADMIN_NODE_PREFIX.."logout"
	REGISTRATION_NODE         = ADMIN_NODE_PREFIX.."register"
	CHGPWD_NODE               = ADMIN_NODE_PREFIX.."chgpwd"

-----------------------------------------------------------------------------
--------- URLs --------------------------------------------------------------
-----------------------------------------------------------------------------

ICON_BASE_URL  = NICE_URL .. '@ws/'              -- change this to host icons elsewhere
CSS_BASE_URL   = NICE_URL             -- change this to host CSS elsewhere
JS_BASE_URL    = NICE_URL             -- change this to host JS elsewhere
LOGO_URL       = ICON_BASE_URL.."logo.png"
FAVICON_URL    = ICON_BASE_URL.."icons/lua.png"
-----------------------------------------------------------------------------
--------- Interface ---------------------------------------------------------
-----------------------------------------------------------------------------

-- the language of the interface
INTERFACE_LANGUAGE = "en"

-- Actions that may appear in the node toolbar as commands
-- (this is the maximum set of commands for the toolbar - each user will only
-- see those they can permissions for)
TOOLBAR_COMMANDS = {"edit", "configure","apidoc"}

-- Optional icons for the commands
TOOLBAR_ICONS = {
	edit = "icons/edit.png",
	configure = "icons/system.png",
	apidoc = "icons/diff.png",
}
MIME_TYPES = {
	["image/png"] = "png",
	["image/jpeg"] = "jpg",
	["image/gif"] = "gif",
	["application/pdf"] = "pdf",
	["text/plain"] = "txt",
}

NEW_NODE_PROTOTYPES = {
   {"", title="Basic", icon="icons/basic_node.png"},
   {"@ws/@image", title="Image", icon="icons/picture.png"},
   {"@ws/@binfile", title="Binary File", icon="icons/attach.png"},
}
-- If no other section of the navigation bar is selected, choose this index
-- from the navigation table and set it's class to 'front'.  You can set this
-- value to nil to disable this behavior.
DEFAULT_NAVSECTION = 1

]==]

